//
// Created by glt on 2025/9/28.
//
// config.cc

// config.cc
#include "config.h"
#include "my_flag.h"

Config::Config() {
    // 在构造函数中初始化
    name_ = FLAGS_name;
    count_ = FLAGS_count;
    verbose_ = FLAGS_verbose;

    module_a_.a =FLAGS_module_a_a;
    module_a_.b = FLAGS_module_a_b;
}

Config& Config::Instance() {
    static Config instance;  // 线程安全，只初始化一次
    return instance;
}